package com.jmonkey.office.jwp.support.editors;

import com.jmonkey.office.jwp.DocumentManager;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyVetoException;
import java.beans.VetoableChangeListener;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

import javax.swing.BorderFactory;
import javax.swing.DesktopManager;
import javax.swing.JEditorPane;
import javax.swing.JPopupMenu;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.SwingUtilities;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;
import javax.swing.event.UndoableEditEvent;
import javax.swing.event.UndoableEditListener;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.EditorKit;
import javax.swing.text.Element;
import javax.swing.text.MutableAttributeSet;
import javax.swing.text.Utilities;

import com.jmonkey.office.jwp.support.Code;
import com.jmonkey.office.jwp.support.Editor;
import com.jmonkey.office.jwp.support.Editor.FRThread;
import com.jmonkey.office.jwp.support.Editor.FWThread;
import com.jmonkey.office.jwp.support.EditorActionManager;

/**
 * This class is the Lexi document editor for plain text documents.
 */
public final class TEXTEditor extends StyledEditor//Editor implements MouseListener,
   // KeyListener 
{

   /**
   * Default Document Constructor.
   */
  public TEXTEditor(EditorActionManager eam, DocumentManager desktopManager) {
    super(eam, desktopManager);
  }
    
    public String getContentType() {
        return CONTENT_TYPE;
    }

    public String[] getFileExtensions() {
        return FILE_EXTENSIONS;
    }
  /**
   * The Content type of the editor.
   */
  public static final String CONTENT_TYPE = VALID_CONTENT_TYPES[0];

  /**
   * File Extensions this editor will handle.
   */
  public static final String[] FILE_EXTENSIONS = { "txt", "text", "*" };


}
